<?php
return [
    /**
     * 默认缓存存储类型
     * 支持 file redis memcache
     */
    'default' => 'file',
    'stores' => [
        'redis' => [
            'driver' => 'redis',
            'servers' => [
                [
                    'host' => '10.100.2.242',
                    'port' => '6380',
                    'password' => env('REDIS_PASSWORD', 'foobared'),
                    'database' => 0,

                    'persistent' => true,
                    'timeout' => 2,
                    'persistent_id' => 'jingying',
                ],
            ]
        ],
        'memcache' => [
            'driver' => 'memcache',
            'persistent_id' => env('PERSISTENT_ID'),
            'namespace' => 'logintime',
            'prefix' => 'jingying',
            'servers' => [
           //     ['host' => '10.100.2.242', 'port' => '11211', 'weight' => 100,],
                ['host' => '10.100.2.242', 'port' => '11212', 'weight' => 100,],
                ['host' => '10.100.2.243', 'port' => '11211', 'weight' => 100,],
            ]
        ],
        'file' => [
            'driver' => 'file',
            'path' => ROOT_PATH . '/storage/cache',
        ],

    ],
];